//
// Created by lfm on 25-4-16.
//
#include <iostream>
#include <vector>
using namespace std;

//vector

void PrintVector(vector<int> & v)
{
    for (vector<int>::iterator it = v.begin(); it != v.end(); it ++)
    {
        cout << *it << " ";
    }
    cout << endl;
}
void test01()
{
    vector<int> v1;
    for (int i = 0; i < 10; i++)
    {
        v1.push_back(i);
    }
    for (int i = 0; i < v1.size(); i++)
    {
        cout << v1[i] <<  " ";
    }
    cout << endl;


    for (int i = 0; i < v1.size(); i++)
    {
        cout << v1.at(i) << " ";
    }
    cout << endl;
}
int main()
{
    test01();
    return 0;
}